#ifndef RECTANGLE_H
#define RECTANGLE_H

#include "pair.h"

class Rectangle : public Pair {
public:
    // Constructors & destructor
    Rectangle();
    Rectangle(int width, int height);
    Rectangle(const Rectangle &other);
    ~Rectangle();

    // Setters & getters
    void setWidth(int w);
    void setHeight(int h);
    int getWidth();
    int getHeight();

    // Friend functions
    friend std::ostream & operator<<(std::ostream &os, const Rectangle &rect);

    // Public methods (interface)
    int area();
    int perimeter();
};

#endif // RECTANGLE_H
